.class Les/v9$c;
.super Ljava/lang/Object;
.source "AudioBlankPCMProducer.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/v9;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "c"
.end annotation


# instance fields
.field private a:Z

.field private b:J

.field final synthetic c:Les/v9;


# direct methods
.method private constructor <init>(Les/v9;)V
    .locals 2

    .line 1
    iput-object p1, p0, Les/v9$c;->c:Les/v9;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 p1, 0x1

    .line 2
    iput-boolean p1, p0, Les/v9$c;->a:Z

    const-wide/16 v0, 0x0

    .line 3
    iput-wide v0, p0, Les/v9$c;->b:J

    return-void
.end method

.method synthetic constructor <init>(Les/v9;Les/v9$a;)V
    .locals 0

    .line 4
    invoke-direct {p0, p1}, Les/v9$c;-><init>(Les/v9;)V

    return-void
.end method

.method private a(I)J
    .locals 8

    .line 2
    iget-object v0, p0, Les/v9$c;->c:Les/v9;

    invoke-static {v0}, Les/v9;->c(Les/v9;)I

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Les/v9$c;->c:Les/v9;

    invoke-static {v0}, Les/v9;->d(Les/v9;)I

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 3
    :cond_0
    iget-wide v0, p0, Les/v9$c;->b:J

    int-to-long v2, p1

    add-long/2addr v0, v2

    iput-wide v0, p0, Les/v9$c;->b:J

    .line 4
    iget-object p1, p0, Les/v9$c;->c:Les/v9;

    invoke-static {p1}, Les/v9;->e(Les/v9;)J

    move-result-wide v0

    iget-wide v2, p0, Les/v9$c;->b:J

    const-wide/32 v4, 0xf4240

    mul-long v2, v2, v4

    iget-object p1, p0, Les/v9$c;->c:Les/v9;

    invoke-static {p1}, Les/v9;->c(Les/v9;)I

    move-result p1

    iget-object v4, p0, Les/v9$c;->c:Les/v9;

    invoke-static {v4}, Les/v9;->d(Les/v9;)I

    move-result v4

    mul-int p1, p1, v4

    int-to-long v4, p1

    const-wide/16 v6, 0x2

    mul-long v4, v4, v6

    div-long/2addr v2, v4

    add-long/2addr v0, v2

    return-wide v0

    .line 5
    :cond_1
    :goto_0
    iget-object p1, p0, Les/v9$c;->c:Les/v9;

    invoke-static {p1}, Les/v9;->e(Les/v9;)J

    move-result-wide v0

    return-wide v0
.end method


# virtual methods
.method public a()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    iput-boolean v0, p0, Les/v9$c;->a:Z

    return-void
.end method

.method public run()V
    .locals 4

    .line 1
    :goto_0
    iget-boolean v0, p0, Les/v9$c;->a:Z

    if-eqz v0, :cond_1

    .line 2
    iget-object v0, p0, Les/v9$c;->c:Les/v9;

    invoke-static {v0}, Les/v9;->a(Les/v9;)Lcom/esfile/screen/recorder/media/util/l;

    move-result-object v0

    .line 3
    iget-object v1, v0, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v1, v1, Landroid/media/MediaCodec$BufferInfo;->size:I

    invoke-direct {p0, v1}, Les/v9$c;->a(I)J

    move-result-wide v1

    iput-wide v1, v0, Lcom/esfile/screen/recorder/media/util/l;->c:J

    .line 4
    iget-object v3, v0, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iput-wide v1, v3, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    .line 5
    iget-object v1, p0, Les/v9$c;->c:Les/v9;

    monitor-enter v1

    .line 6
    :try_start_0
    iget-object v2, p0, Les/v9$c;->c:Les/v9;

    invoke-static {v2}, Les/v9;->b(Les/v9;)Les/v9$b;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 7
    iget-object v2, p0, Les/v9$c;->c:Les/v9;

    invoke-static {v2}, Les/v9;->b(Les/v9;)Les/v9$b;

    move-result-object v2

    invoke-interface {v2, v0}, Les/v9$b;->a(Lcom/esfile/screen/recorder/media/util/l;)V

    .line 8
    :cond_0
    monitor-exit v1

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_1
    return-void
.end method
